<cp-navbar [leftArrow]="false" rightText="设置" (onClickRight)="nTo('/workspace/mine/setting')"></cp-navbar>
<div class="container">
  <div class="personInfo" *ngIf="login">
    <div class="left" (click)="handleRouter('personInfo')">
      <img [src]="userinfo.Photo" class="avatar" />
      <div class="info">
        <p class="name">{{ userinfo.Nick }}</p>
        <p class="phone">查看并编辑个人资料</p>
      </div>
    </div>
    <div class="right" routerLink="../qrcode" [queryParams]="{ Nick: userinfo.Nick, Captcha: userinfo.Captcha }">
      <i class="icon icon-qrcode1"></i> <i class="icon icon-right"></i>
    </div>
  </div>
  <div class="personInfo" (click)="handleRouter('personInfo')" *ngIf="!login">
    <div class="left">
      <img src="assets/images/House/profile_user_info_photo.png" class="avatar" />
      <div class="info">
        <p class="name">立即登录</p>
        <p class="phone">登录后享受更多特权</p>
      </div>
    </div>
    <div class="right"><i class="icon icon-qrcode1"></i> <i class="icon icon-right"></i></div>
  </div>
  <div class="common-cell" *ngFor="let item of list">
    <div
      class="item"
      *ngFor="let i of item.children; let j = index"
      (click)="handleRouter(i.alias)"
      [class.border-bottom]="j !== item.children.length - 1"
    >
      <div class="left">
        <img src="assets/images/Mine/{{ i.icon }}.png" class="imgicon" /> <span class="txt">{{ i.name }}</span>
      </div>
      <div class="right">
        <span class="value">{{ i.value }}</span> <i class="icon icon-right"></i>
      </div>
    </div>
  </div>
</div>
<cp-tabbar></cp-tabbar>
